package com.maxwell.googleplay.protocol;

import java.util.List;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import com.maxwell.googleplay.base.BaseProtocol;
import com.maxwell.googleplay.bean.SubjectInfoBean;

/**
 * @author  yue
 * @创建时间 2016-4-1下午7:23:41
 * @描述     TODO
 * 
 */
public class SubjectProtocol extends BaseProtocol<List<SubjectInfoBean>> {

	@Override
	public String getInterfaceKey() {
		
		return "subject";
	}

	@Override
	public List<SubjectInfoBean> parseJson(String jsonString) {
		Gson gson = new Gson();
		return gson.fromJson(jsonString, new TypeToken<List<SubjectInfoBean>>(){}.getType());
		
	}

}
